﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="hotelDetail.aspx.vb" Inherits="NewHotels.hotelDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="HotelName" HeaderText="HotelName" 
                    SortExpression="HotelName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Pictures" HeaderText="Pictures">
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:HotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [HotelName], [Description], [Pictures] FROM [Hotels] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
       >
            <Columns>
                <asp:BoundField DataField="Author" HeaderText="Author" 
                    SortExpression="Author" />
                <asp:BoundField DataField="Comment" HeaderText="Comment" 
                    SortExpression="Comment" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:HotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Author], [Comment], [Title] FROM [Comments] WHERE ([Hotel_fkID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Hotel_fkID" QueryStringField="ID" 
                    Type="Int32" DefaultValue="0" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        Add your comment here</p>
    <p>
        Title<asp:TextBox ID="tb_Title" runat="server"></asp:TextBox>
    </p>
    <p>
        Your comment<asp:TextBox ID="tb_Comment" runat="server" Height="86px" 
            TextMode="MultiLine" Width="209px"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="btn_AddComment" runat="server" Text="Add Your Comment" />
    </p>
    <p>
        ----------------------<asp:CheckBoxList ID="CheckBoxList1" runat="server" 
            DataSourceID="TagsDataSource" DataTextField="Tags" DataValueField="ID" 
            RepeatDirection="Horizontal">
        </asp:CheckBoxList>
        <asp:SqlDataSource ID="TagsDataSource" runat="server" 
            ConnectionString="<%$ ConnectionStrings:HotelsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:HotelsConnectionString.ProviderName %>" 
            SelectCommand="SELECT DISTINCT [ID], [Tags] FROM [tags]">
        </asp:SqlDataSource>
    </p>
    <p>
        Add new tags here, seperate tags using commas<asp:TextBox ID="tb_Tags" 
            runat="server" Width="317px"></asp:TextBox>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Tag This Hotel" />
    </p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
    </p>
</asp:Content>
